package chixing.day07.inherited;

public class DiscountProductTest {
    public static void main(String[] args) {
        DiscountProduct discountProduct1 = new DiscountProduct();
        discountProduct1.setProName("电脑");
        discountProduct1.setProPrice(5000);
        discountProduct1.setDiscountRare(0.8f);
        //输出三个属性值
        System.out.println(discountProduct1.getProName());
        System.out.println(discountProduct1.getProPrice());
        System.out.println(discountProduct1.getDiscountRare());
    }
}
